package store

import (
	"io"
	"os"
)

// FileInfo 文件信息结构体
type FileInfo struct {
	Name  string
	IsDir bool
}

// StoreService 存储服务接口
type StoreService interface {
	Save(key string, data []byte) error
	SaveString(key string, data string) error
	GetFileStream(key string) (io.ReadSeeker, error) // 修改为返回 io.ReadSeeker
	SaveKeyGz(key string) error
	ListDirectory(prefix string) ([]FileInfo, error)
	DownloadToFile(key, localFilePath string) error
	GetFileInfo(key string) (os.FileInfo, error)
}
